﻿
public class Request_Apply : RequestBase
{

    public const string Key = "Apply";

    public ApplyRequestData applyReqData = new ApplyRequestData();

    protected override ISerialize requestData
    {
        get
        {
            return applyReqData;
        }
    }

    public Request_Apply() : base()
    {
        MessagePacket.key = Key;
    }

    public override void OnSend()
    {
        base.OnSend();

        GameDebug.Log($"发送Apply请求：{applyReqData.targetUserId}");
    }

    //public override ResponseBase GetResponseHandler()
    //{
    //    return new Response_Apply();
    //}

    public override ResponseData NewResponseData()
    {
        return new ApplyResponseData();
    }
}

//public class Response_Apply : ResponseBase
//{
//    public ApplyResponseData applyResponseData => this.responseData as ApplyResponseData;

//    public override ResponseData NewResponseData() => new ApplyResponseData();

//    public override void Excuate()
//    {
//        //GameDebug.LogShowy("Request_Apply -> Excuate");

//        (this.request as Request_Apply).onResponse?.Invoke(this);
//    }
//}
